﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.Middleware.ApiJson
{
    public static class UseApiJson
    {
        /// <summary>
        /// 启用 ApiJson
        /// </summary>
        /// <param name="applicationBuilder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseApiJsonMidWare(this IApplicationBuilder applicationBuilder)
        {
            return applicationBuilder.UseMiddleware<ApiJsonMidWare>();
        }

    }
}
